import "mars3d-cesium/Build/Cesium/Widgets/widgets.css"
import "mars3d-cesium"
// import '@/utils/turf.min.js'

import "mars3d/dist/mars3d.css"
import "mars3d"

import { createApp } from 'vue'
import '@styles/style.css'
import '@styles/normal.css'
import '@styles/font.css'
import App from '@/App.vue'
import router from '@/router'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// iconpark
import '@icon-park/vue-next/styles/index.css'
import { download } from '@/utils/request';
import { parseTime, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi';

// 创建pinia
const pinia = createPinia()

const app = createApp(App)
app.config.globalProperties.download = download;
app.config.globalProperties.parseTime = parseTime;
app.config.globalProperties.handleTree = handleTree;
app.config.globalProperties.addDateRange = addDateRange;
app.config.globalProperties.selectDictLabel = selectDictLabel;
app.config.globalProperties.selectDictLabels = selectDictLabels;

app.use(router)
app.use(pinia)
app.use(ElementPlus)
app.mount("#app")
